//
//  SNKAppConfig.m
//  SleepNews
//
//  Created by Kavee DJ on 2016/12/19.
//  Copyright © 2016年 Kavee DJ. All rights reserved.
//

#import "SNKAppConfig.h"

@implementation SNKAppConfig

SingleM(AppConfig)

+ (void)saveProAndCityInfoWithPro:(NSString *)pro city:(NSString *)city
{
    [[NSUserDefaults standardUserDefaults] setObject:pro forKey:@"kProvice"];
    [[NSUserDefaults standardUserDefaults] setObject:city forKey:@"kCity"];
    [[NSUserDefaults standardUserDefaults] synchronize];
}

+ (NSString *)getProInfo
{
    NSString *provice = [[NSUserDefaults standardUserDefaults] objectForKey:@"kProvice"];
    return provice;
}
+ (NSString *)getCityInfo
{
    NSString *city = [[NSUserDefaults standardUserDefaults] objectForKey:@"kCity"];
    return city;
}

@end
